<template>
  <div class="block">
    <el-timeline>
      <el-timeline-item v-for="(item,index) of timeline" :key="index" :timestamp="item.timestamp" placement="top">
        <el-card>
          <h4>{{ item.title }}</h4>
          <p>{{ item.content }}</p>
        </el-card>
      </el-timeline-item>
    </el-timeline>
  </div>
</template>

<script>
export default {
  data() {
    return {
      timeline: [
        {
          timestamp: '2024/4/20',
          title: '更新公告',
          content: 'admin删除过时公告'
        },
        {
          timestamp: '2024/4/23',
          title: '添加普通管理员',
          content: '超级管理员admin添加普通管理员editor'
        },
        {
          timestamp: '2024/8/10',
          title: '更新新生信息',
          content: 'editor上传24届新生信息execl文件'
        },
        {
          timestamp: '2024/9/22',
          title: '发布任务',
          content: 'admin发布学习周期的任务'
        }
      ]
    }
  }
}
</script>
